﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>

<!--管理员列表-->
<ul class="listbottonul" id="listbottonul">
    <%if (bllPowerGroupService.powercheck("system", "manageradd", modelpowergroup))
      { %>
	<li class="menumain"><a id="addinfo" class="addinfo" onclick="javascript:parent.onbotton('_{botton_add_manageradd}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.UserController().AdminAdd) %>?tab=true&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'addinfo',self.frameElement.getAttribute('name'));"  href="#body" title="_{botton_add_group}" hidefocus="true">_{botton_add_manageradd}</a></li>
	<%} %>
	<li class="menumain"><a id="selectall" class="selectall" href="javascript:select_change(true,'selectform','selectall','check_all')" title="_{selAll_botton}" hidefocus="true">_{selAll_botton}</a></li>
	<li class="menumain"><a id="bolt" href="#body" hidefocus="true" hidefocus="true">_{bolt_botton}</a>
		<ul class="menulist">
			<li><span class="menufont">_{mangerlist_user_type}</span>
				<ul>
					<li><a class="menunoclick" id="isclass0" href="#body" onclick="javascript:dbfilter('isclass','isclass',0,0,3,'selectform','selectall','check_all')" title="_{all_botton}" hidefocus="true">_{all_botton}</a></li>
					<li><a class="menuclick" id="isclass1" href="#body" onclick="javascript:dbfilter('isclass','isclass',1,1,3,'selectform','selectall','check_all')" title="_{mangerlist_audit_ok}" hidefocus="true">_{mangerlist_audit_ok}</a></li>
					<li><a class="menuclick" id="isclass2" href="#body" onclick="javascript:dbfilter('isclass','isclass',2,2,3,'selectform','selectall','check_all')" title="_{mangerlist_audit_no}" hidefocus="true">_{mangerlist_audit_no}</a></li>
				</ul>
			</li>
			<li><span class="menufont">_{inputtype_botton}</span>
				<ul>
					<li><a class="menunoclick" id="inputclassid0" href="#body" onclick="javascript:dbfilter('inputclassid','inputclassid',0,0,3,'selectform','selectall','check_all')" title="_{all_botton}" hidefocus="true">_{all_botton}</a></li>
					<li><a class="menuclick" id="inputclassid1" href="#body" onclick="javascript:dbfilter('inputclassid','inputclassid',1,1,3,'selectform','selectall','check_all')" title="_{input1_botton}" hidefocus="true">_{input1_botton}</a></li>
					<li><a class="menuclick" id="inputclassid2" href="#body" onclick="javascript:dbfilter('inputclassid','inputclassid',2,2,3,'selectform','selectall','check_all')" title="_{input0_botton}" hidefocus="true">_{input0_botton}</a></li>
				</ul>
			</li>
			<li><span class="menufont">_{grouptype_botton}</span>
				<ul>
					<li><a class="menunoclick" id="powergroup0" href="#body" onclick="javascript:dbfilter('powergroup','powergroup',0,0,#{powernum},'selectform','selectall','check_all')" title="_{all_botton}" hidefocus="true">_{all_botton}</a></li>
                    <% List<PowerGroup> powerarray = v.data("powergrouplist") as List<PowerGroup>; %>
					<% for (int i = 0; i < powerarray.Count; i++){ %>
					<li><a class="menuclick" id="powergroup<%=i+1 %>" href="#body" onclick="javascript:dbfilter('powergroup','powergroup',<%=powerarray[i].Id %>,<%=i+1  %>,#{powernum},'selectform','selectall','check_all')" title="<%=powerarray[i].powername %>" hidefocus="true"><%=powerarray[i].powername %></a></li>
					<%}%>
				</ul>
			</li>
		</ul>
	</li>
    <%if (bllPowerGroupService.powercheck("system", "delmanage", modelpowergroup))
      { %>
	<li class="menumain"><a id="del" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.UserController().AdminDel) %>','selectinfoid',false,null,null,'#{load}','_{del_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" href="#body" hidefocus="true">_{del_botton}</a></li>
	<%} %>
	<li class="menumain"><a id="refresh" href="#body" onclick="javascript:refresh('selectform','selectall','check_all');" title="_{refresh_botton}" hidefocus="true">_{refresh_botton}</a></li>
    <%if (bllPowerGroupService.powercheck("system", "manageedit", modelpowergroup))
      { %>
	<li class="menumain"><a id="setbotton" href="#body" hidefocus="true" title="_{set_botton}">_{set_botton}</a>
		<ul class="menulist">
			<li><span class="menufont">_{mangerlist_user_type_set}</span>
				<ul>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.UserController().AdminSetting) %>','selectinfoid',true,'isclass',1,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="_{mangerlist_audit_ok}" hidefocus="true">_{mangerlist_audit_ok}</a></li>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.UserController().AdminSetting) %>','selectinfoid',true,'isclass',0,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="_{mangerlist_audit_no}" hidefocus="true">_{mangerlist_audit_no}</a></li>
				</ul>
			</li>
			<li><span class="menufont">_{input_set_botton}</span>
				<ul>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.UserController().AdminSetting) %>','selectinfoid',true,'inputclassid',1,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="_{input1_botton}" hidefocus="true">_{input1_botton}</a></li>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.UserController().AdminSetting) %>','selectinfoid',true,'inputclassid',0,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="_{input0_botton}" hidefocus="true">_{input0_botton}</a></li>
				</ul>
			</li>
			<li><span class="menufont">_{group_set_botton}</span>
				<ul>
					<% for (int i = 0; i < powerarray.Count; i++){ %>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.UserController().AdminSetting) %>','selectinfoid',true,'powergroup',<%=powerarray[i].Id %>,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="<%=powerarray[i].powername %>" hidefocus="true"><%=powerarray[i].powername %></a></li>
					<%}%>
				</ul>
			</li>
		</ul>
	</li>
	<%} %>
</ul>